class Comment < ApplicationRecord
  include Visiable
  
  belongs_to :article

  VALID_STATUSES = %w(public private archived)

  validates :status, inclusion: { in: VALID_STATUSES }

  def archived?
      status == "archived"
  end
end
